<%-- 
    Document   : project
    Created on : Apr 17, 2012, 9:09:49 PM
    Author     : jdepena
--%>

<%@page import="depena.urbarama.data.UProjectList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Project #3 - De Pena</title>
        <link rel="stylesheet" type="text/css" href="project.css" />
    </head>
    <body>
        <div class="projects">
            <ol>
            <%
            UProjectList list = (UProjectList)session.getAttribute("list");
            if (list != null)
            {
                if (list.count() > 0)
                {
                    for (int i = 0; i < list.count(); i++)
                    {
                        %> 
                        <div class="project">
                            <li>
                                <em>Owner: </em> <%= list.at(i).getOwner_name() %></br>
                                <em>Project: </em> <%= list.at(i).getProject_title() %></br>
                                <em>Description: </em> <%= list.at(i).getProject_desc() %></br>
                                <em>Url: </em> <a href="<%= list.at(i).getProject_url() %>" 
                                target="_blank"><%= list.at(i).getProject_url() %></a></br>
                                <em>Date: </em> <%= list.at(i).getUpload_date() %></br></br>
                            </li>
                        </div>
                        <%
                    }
               }
               else
               {
                   %>
                   <p class="empty">No results!</p>
                   <%
               }
            }
            %>
            </ol>
        </div>
    </body>
</html>
